#ifndef SSICLOUD_NEWS_H
#define SSICLOUD_NEWS_H

#include "ssicloud_list_object.h"

namespace ssicloud {

/**
 * @brief The NewsTypeList class
 *  用车宝典-获取宝典类型
 */
class NewsTypeList : public ListObject<NewsTypeListLNode> {
public:
    NewsTypeList();

    //! 获取数据
    bool requestAll();

    //! 调试信息
    void profile();

protected:
    //! 分析数据
    int genResult(NetBuffer *data);
};

/**
 * @brief The NewsSelectPage class
 *  用车宝典-分页查询
 */
class NewsSelectPage : public  ListObject<NewsSelectPageLNode> {
public:
    NewsSelectPage();

    //! 获取数据
    bool requestAll(const char *id = "", int pageNum = 1, int pageSize = 10);

    //! 调试信息
    void profile();

protected:
    //! 分析数据
    int genResult(NetBuffer *data);

    // request
    SFString m_newsTypeId;
    SFString m_pageNum;
    SFString m_pageSize;

    // responed

};

}

#endif // SSICLOUD_NEWS_H
